'''
Created on Dec 8, 2012

@author: bbg
'''
import unittest
from service.webside.company_management_service import CompanyMgrService
from webob import Request, Response

class Test(unittest.TestCase):


    def setUp(self):
        pass


    def tearDown(self):
        pass


    def testGetRegions(self):
        params = {
                  'method':'get',
                  'company_id':20001,
                  'op_shop_id':1,
                  'token':'L!1S7-3KEH4-FH9JI-JLR7L',
                  'type':'regions',
                  'username':'wugang',
                  'sign':'92a778a752f9de3568baa1747e02e9fe'
                  }
        req = Request.blank(path='/poscloud/v1/company/manage', POST =  params)
        res = Response()
        
        CompanyMgrService.process(req, res)
        print res.text

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()